package com.hello.tong.feign;

import com.hello.tong.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author tong-exists
 * @Create 2023/1/1 22:36
 * @Version 1.0
 */
@FeignClient("order-service")
public interface OrderFeignService {


    @PostMapping("/create/{userId}/{commodityCode}/{orderCount}")
    public Order create(@PathVariable("userId") String userId,
                        @PathVariable("commodityCode") String commodityCode,
                        @PathVariable("orderCount")int orderCount) ;

}
